<div class="page_title">
    <span class="title_icon"><span class="coverflow"></span></span>
    <h3>Laboratorios</h3>    
</div>
<div id="content">
    <div class="grid_container">
        <div class="grid_12">
            <div class="widget_wrap">
                <div class="widget_top">
                    <span class="h_icon list"></span>
                    <h6>Editar el laboratorio</h6>
                </div>
                <div class="widget_content">
                    <?php echo $this->Form->create('Laboratorio', array('id' => 'regitstraion_form', 'class' => 'form_container left_label')); ?>
                    <ul>
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title" for="name">subcategorias<span class="req">*</span></label>
                                <div class="form_input">
                                    <?php echo $this->Form->select('subclaseslaboratorio_id', $subclaseslaboratorio, array('tabindex' => 1, 'class' => 'required mid')); ?>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title" for="password">Nombre <span class="req">*</span></label>
                                <div class="form_input">
                                    <?php echo $this->Form->text('nombre', array('tabindex' => 1, 'class' => 'required mid')); ?>
                                </div>
                            </div>
                        </li>
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title" for="password">Descripcion <span class="req">*</span></label>
                                <div class="form_input">
                                    <?php echo $this->Form->text('descripcion', array('tabindex' => 1, 'class' => 'required mid')); ?>
                                </div>
                            </div>
                        </li>                                               
                        <li>
                            <div class="form_grid_12">
                                <label class="field_title">Seleccione formato resultado<span class="req">*</span> </label>
                                <div class="form_input">       
                                    <?php $opciones = array(
                                        '0'=>array(
                                          'id'=>'1', 
                                            'nombre'=>'Campo abierto'
                                        ),
                                        '1'=>array(
                                          'id'=>'2', 
                                            'nombre'=>'Seleccionale'
                                        ),
                                        '2'=>array(
                                            'id'=>'3', 
                                            'nombre'=>'Rangos numericos / Rangos variables'
                                        )
                                    )?>
                                    
                                    <select name="data[Laboratorio][tipo]">
                                        <option value=" ">&nbsp;</option>
                                        <?php foreach($opciones as $op):?>
                                        <?php if($op['id'] == $this->request->data['Laboratorio']['tipo']):?>
                                        <option value="<?php echo $op['id']?>" selected="selected">
                                            <?php echo $op['nombre']?>
                                        </option>
                                        <?php else:?>
                                        <option value="<?php echo $op['id']?>">
                                            <?php echo $op['nombre']?>
                                        </option>
                                        <?php endif;?>
                                        <?php endforeach;?>
                                        
                                    </select>
                                </div>
                            </div>
                        </li>                       
                        <li>
                            <div class="form_grid_12">
                                <div class="form_input">
                                    <button type="submit" class="btn_small btn_blue"><span>Guardar cambios</span></button>
                                    <button type="reset" class="btn_small btn_blue"><span>Limpiar datos</span></button>
                                </div>
                            </div>
                        </li>
                    </ul>
                    </form>
                </div>
            </div>
        </div>           
    </div>
    <span class="clear"></span>
</div> 


